<template>
  <div id="popular">
    <div class="title">{{title}}</div>
    <recommend :data="data"/>
  </div>
</template>

<script>
  import recommend from "../normal/recommendIndex";

  export default {
    name: "Popular",
    props: {
      data: Array,
      title: String
    },
    components: {
      recommend
    }
  }
</script>

<style scoped>
  #popular .title {
    text-align: center;
    font-size: 15px;
    height: 40px;
    line-height: 40px;
  }
</style>